<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        window.onload = function(){
            // 页面加载完后执行的函数
            var elementobj = document.createElement("div");
            document.body.appendChild(elementobj);
            // elementobj.innerText = "glhvvfuk!";
            elementobj.innerHTML = "光辉真帅！";
            // 两种方法都可以在标签中写内容
        }
    </script>
</head>
<body>
    
</body>
</html>